home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7524 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: solaris.cc.vt.edu!enterprise!not-for-mail
  2. From: u3642295@chula.edu (Soravut Kruavit)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: alloca() on Amiga?
  5. Date: 18 Apr 1996 11:35:26 GMT
  6. Organization: Chulalongkorn University
  7. Message-ID: <4l59du$bdo@enterprise.netserv.chula.ac.th>
  8. References: <2720tdg60.alamito@marketgraph.xs4all.nl> <4k1oce$lub@blackice.winternet.com> <DpE7Ip.7or@unx.sas.com> <393brdv60.alamito@marketgraph.xs4all.nl>
  9. NNTP-Posting-Host: columbia.chula.edu
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Ruud van Gaal (rvg@marketgraph.xs4all.nl) wrote:
  13. kkl;
  14. : In <DpE7Ip.7or@unx.sas.com> walker@chang.unx.sas.com (Doug Walker) 
  15. wrote: : >In article <4k1oce$lub@blackice.winternet.com>,
  16. : >Anthony Pang <apang@winternet.com> wrote:
  17. : >>In article <2720tdg60.alamito@marketgraph.xs4all.nl>,
  18. : >>Ruud van Gaal <rvg@marketgraph.xs4all.nl> wrote:
  19. : >>>Is there a nice way to get a working alloca() function for the Amiga?
  20. : >>>It is present on all PC and Unix C implementations, but not on the Amiga.
  21. : >>>(it allocates mem from the stack, automatically freeing it upon return 
  22. : from 
  23. : >>>subroutine).
  24. : >>
  25. : >>GCC and SAS have alloca().  I think DICE has it too.
  26. : >
  27. : >This is not correct. SAS/C does not supply an alloca() function.
  28. : >Third parties may have been able to implement one, but it's not
  29. : >a trivial operation.
  30. : Indeed, SAS doesn't have one, but I've received source code for an 
  31. : implementation which does not free memory upon function exit (would be very 
  32. : tricky), but somewhere at a later point (garbage collection). It's not really 
  33. : the ideal thing, but it's close (enough for now).
  34. : Thanks for all the replies!
  35. : --
  36. : Ruud van Gaal
  37. : MarketGraph Visual Automation
  38. : E-Mail                : rvg@marketgraph.xs4all.nl
  39. : DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
  40. : "...Works fascinates me. I could sit and watch it for hours..."
  41.